package demoMod.strongerheart.patches;

import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.evacipated.cardcrawl.modthespire.lib.SpireReturn;
import com.megacrit.cardcrawl.helpers.MonsterHelper;
import com.megacrit.cardcrawl.monsters.MonsterGroup;
import demoMod.strongerheart.StrongerHeartMod;
import demoMod.strongerheart.monsters.StrongerHeart;

public class MonsterHelperPatch {
    @SpirePatch(
            clz = MonsterHelper.class,
            method = "getEncounter"
    )
    public static class PatchGetEncounter {
        public static SpireReturn<MonsterGroup> Prefix(String key) {
            if ("The Heart".equals(key) && StrongerHeartMod.enableReplace) {
                return SpireReturn.Return(new MonsterGroup(new StrongerHeart()));
            }
            return SpireReturn.Continue();
        }
    }
}
